<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>购物车-闲物网</title>

  <link rel="stylesheet" type="text/css" href="css/style.css" />
  <link rel="stylesheet" type="text/css" href="css/cp.css" />
</head>

<body>
  <div id="head">
    <div class="content">
      <div class="left">闲物网欢迎您！</div>
      <ul>
        <div id="dla" style="display: block;">
          <li><a href="reg.html">注册</a></li>
          <li>|</li>
          <li><a href="login.html">登录</a></li>
        </div>
        <div id="dlb" style="display: none;">
          <li><a href="#" onClick="out()">退出登录</a></li>
          <li class="line">|</li>
          <li>欢迎您！<span id="myu"></span></li>
        </div>
      </ul>
      <script src="js/date.js"></script>
      <script>
        var dq_user = sessionStorage.getItem('dq_user');
        if (dq_user.length > 0) {
          document.getElementById("dla").style.display = 'none';
          document.getElementById("dlb").style.display = 'block';
          document.getElementById("myu").innerHTML = dq_user;

        }
        else {
          document.getElementById("dlb").style.display = 'none';
          document.getElementById("dla").style.display = 'block';
        }
      </script>
      <div style="clear:both"></div>
    </div>
  </div>

  <div id="top">
    <div class="content">
      <div class="logo">
        <a href="index.html" title="手机商城"><img src="images/logo.png" alt="手机商城">手机商城</a>
      </div>

      <div style="clear:both"></div>
    </div>

  </div>
  </div>
  <div id="navBar">
    <div class="content hyc">

      <ul id="nav_ul">
        <li><a href="index.html">首页</a></li>

        <li><a href="gm1.html" target="_self">手机购买</a></li>
        <li><a href="mydd.html" target="_self">我的订单</a></li>
        <li><a href="contact.html" target="_self">联系我们</a></li>
        <div style="clear:both"></div>
      </ul>
    </div>
  </div>


  <div id="wrapper">
    <div class="banner">

      <img src="images/lb1.jpg" class="box2">

    </div>

    <div id="cont_wp">

      <div class="zlbox">
        <div class="mynav">
          <ul>
            <li><a href="mydd.html">我的订单</a></li>
            <li><a href="gwc.html">购物车</a></li>
            <li><a href="user.html">资料设置</a></li>
          </ul>
        </div>
        <form action="?ss=ok" method="post">
          <table width="100%" border="0" align="center" cellspacing="0px" bordercolor="#CCCCCC"
            style="border-collapse:collapse; background:#F7F7F7; margin-bottom:10px;">
            <tbody>
              <tr>
                <td width="103" height="26">
                  <div align="center"><span class="STYLE3">查询</span></div>
                </td>
                <td colspan="3"><input name="keys" class="ssp" type="text" style="height:25px;" placeholder="输入订单号">
                </td>

                <td width="826"><input type="submit" value="搜索"></td>

              </tr>
            </tbody>
          </table>
        </form>
        <table width="100%" border="0" align="center" class="tba" cellspacing="0px"
          style="border-collapse:collapse; margin-bottom:0px;">
          <tbody>
            <tr style="background:#F0F0F0">
              <td width="63" height="29">
                <div align="center" class="STYLE2">ID</div>
              </td>
              <td width="138" height="29">
                <div align="center" class="STYLE2">商品图片</div>
              </td>
              <td width="808">
                <div align="center" class="STYLE2">商品名称</div>
              </td>
              <td width="201">
                <div align="center" class="STYLE2">单价</div>
              </td>
              <td width="444">
                <div align="center" class="STYLE2">数量</div>
              </td>
            </tr>

            <tr style="background:#FFFFFF">
              <td height="52">
                <div align="center"><span class="STYLE1">
                    <input name="cpid" id="cpid_1" type="checkbox" class="cit" value="83" onclick="xzok_1()">
                  </span></div>
              </td>
              <td>
                <div align="center"><img src="images/a1.png" width="100" height="100" style="border-radius:6px"></div>
              </td>
              <td>
                <div align="center" class="STYLE1">苹果iPhone SE 3</div>
              </td>
              <input name="all_price" type="hidden">
              <td>
                <div align="center" class="STYLE1">3000.00</div>
              </td>
              <td>
                <div align="center" class="STYLE1"><input class="put1" type="button" value="-" onclick="jian('1')"><span
                    class="xt1" id="xsnum_1">1</span><input class="put1" type="button" value="+" onclick="zenj('1')">
                </div>

                <input type="hidden" name="buysum" class="put2" id="buysum_1" value="3">
              </td>

            </tr>


            <script type="text/jscript">
function jian(id)
{
var dqnum=document.getElementById("xsnum_"+id).innerHTML
if(dqnum>1)
{
document.getElementById("xsnum_"+id).innerHTML=parseInt(dqnum)-1;
dqnum=document.getElementById("buysum_"+id).value=parseInt(dqnum)-1;
dqnum=document.getElementById("xsnum_"+id).innerHTML;
}
}
function zenj(id)
{
var dqnum=document.getElementById("xsnum_"+id).innerHTML
document.getElementById("xsnum_"+id).innerHTML=parseInt(dqnum)+1;
dqnum=document.getElementById("buysum_"+id).value=parseInt(dqnum)+1;
dqnum=document.getElementById("xsnum_"+id).innerHTML;

}
</script>


          </tbody>
        </table>

        <div><input type="button" class="xmta" value="选中删除" onclick="delok()"><input type="button" class="xmta"
            onclick="xdok()" value="选中下单"></div>
        <script>
          function xdok() {
            alert('成功！');
            window.location = 'mydd.html';
          }
          function delok() {
            alert('删除成功')
          }
        </script>
      </div>

    </div>



    <div style="clear:both"></div>
  </div>
  <div id="footer">
    <p>Copyright &#169; 2022, 手机商城, All Rights Reserved</p>
  </div>

</body>

</html>